package com.hadoop.mr.amiudake.distinct;

import java.io.IOException;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

public class DistinctMapper extends Mapper<LongWritable, Text, Text, Text>{

	@Override
	protected void map(LongWritable key, Text value, org.apache.hadoop.mapreduce.Mapper.Context context)
			throws IOException, InterruptedException {
		try {
			System.out.println(value);
			context.write(value, new Text("1"));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	
}
